﻿(function(){
	var youtubeCmd= { exec : function(editor){ editor.openDialog('youtube'); return; } };
	CKEDITOR.plugins.add(
		'youtube',
		{
			lang:['es','en','uk'],
			requires:['dialog'],
			init: function(editor){
				var commandName='youtube';
				var iconPath = this.path+"images/youtube.png";
				
				editor.addCommand(commandName,youtubeCmd);
				editor.ui.addButton('Youtube',{label:editor.lang.youtube.button,command:commandName,icon:iconPath});			
				
				CKEDITOR.dialog.add(commandName,CKEDITOR.getUrl(this.path+'dialogs/youtube.js'));
			}
		}
	);
})();
